package com.ejuornal.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.ejuornal.bean.vo.ECUserPeriodical;
import com.ejuornal.dao.EditorCommitVoDao;
import com.ejuornal.service.EditorCommitVoService;

@Component("editorCommitVoService")
public class EditorCommitVoServiceImpl implements EditorCommitVoService {
	public EditorCommitVoDao editorCommitVoDao;
	@Override
	public List<ECUserPeriodical> findAllByEditorChiefId(int editorChiefId) {
		return editorCommitVoDao.findAllByEditorChiefId(editorChiefId);
	}
	

	@Override
	public List<ECUserPeriodical> findAllEditorCommitBiPerId(int periodicalId) {
		return editorCommitVoDao.findAllEditorCommitBiPerId(periodicalId);
	}

	@Override
	public List<ECUserPeriodical> findAllByECIdState(int editorChief, int state) {
		// TODO Auto-generated method stub
		return editorCommitVoDao.findAllByECIdState(editorChief, state);
	}
	
	@Override
	public ECUserPeriodical getEditorCommitInfoById(int editorCommitId) {
		return editorCommitVoDao.getEditorCommitInfoById(editorCommitId);
	}

	
	public EditorCommitVoDao getEditorCommitVoDao() {
		return editorCommitVoDao;
	}
	@Resource(name="editorCommitVoDao")
	public void setEditorCommitVoDao(EditorCommitVoDao editorCommitVoDao) {
		this.editorCommitVoDao = editorCommitVoDao;
	}


}
